<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.Date" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>_韵达电子面单</title>
<style type="text/css">
<!--


body{ font-family:"SimHei"; line-height:10pt;font-size:10pt;background-color:#FFF; }
.font7{ font-size:7pt;font-weight:100;}
.font8{ font-size:8pt;font-weight:100;}
.font9{ font-size:9pt;font-weight:100;}
.font10{ font-size:10pt;font-weight:100;}
.font11{ font-size:11pt;font-weight:100;}
.font14{ font-size:14pt;font-weight:100;}
.font32{ font-size:32pt;font-weight:100;}
.font-jc{ font-weight:bolder;}
.tab1{ width:98mm; height:199mm;}
.tabsb { border:#333 solid 1px; }
.tabrd {border-bottom:#000 solid 1px; border-right:#000 solid 1px;}
.tabr {border-right:#000 solid 1px;}
.tabd { border-bottom:#000 solid 1px;}
.margin-left20 { margin-left:20px;}
.padding-left15{padding-left:15px;}
p{ margin:0; padding:0;padding-left:5px;}
#bs{ position:relative; height:51mm;}
#bs .yys{ position: absolute; right:5mm; top: 40mm; display:block; background-color:#FFF; border:#000 solid 1px; padding:5px 2px; letter-spacing:5px; width:20mm; text-align:center; line-height:14px;}

-->
</style>
<script type="text/javascript">
	function dealWaybill(waybillNo){
		var reg = /(\d{4})/g;
		document.getElementById("waybillNo").innerHTML = "运单编号:"+waybillNo.replace(reg,'$1 ');
	}
</script>
</head>

<body onload="dealWaybill('${printerModel.expressNo}')">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tab1">
  <tr>
    <td style="height:41mm; vertical-align:top;" class="tabd">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
        <p class="font8">始发网点:<br />
寄件人:${printerModel.fromName}<br />
寄件人电话:${printerModel.fromPhone ? printerModel.fromPhone : printerModel.fromMobile}<br />
寄件公司:${printerModel.fromCompany}<br/>
寄件人地址:${printerModel.fromAddress}</p></td>
     <td style="width:40mm;">
     <span class="font10 font-jc" style="display:block; float:left; width:10mm; line-height:14px; ">寄付</span>
     <span id="now_date" class="font7" style="display:block; float:left;line-height:10px;"><fmt:formatDate value="<%=new Date() %>" pattern="yyyy/MM/dd/ HH:mm:ss" /></span>
     </td>
    </tr>
    </table>
    <table style="margin-top:1px;" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" style="width:10mm;"><p class="font10 font-jc">送达地址</p></td>
    <td valign="top"><p class="font10">收件人:${printerModel.toName}<br />
收件人电话:${printerModel.toPhone ? printerModel.toPhone : printerModel.toMobile}<br />
收件公司:${printerModel.toCompany}<br/>
收件人地址:${printerModel.toAddress}</p></td>
  </tr>
</table>
  <p class="font14 font-jc"  style="margin-top:2px;">菜鸟电子面单一期暂无集包地</p>
    </td>
  </tr>
  <tr>
    <td style="height:22mm;">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
	     <td align="center" valign="middle" class="tabrd" style="height:22mm; width:25mm;"></td>
	    <td class="tabd font32 font-jc" valign="middle" ><span style="line-height:30pt;">${printerModel.toDistCode}<%-- <c:set var="tmpTown" value="${fn:replace(printerModel.toTowns,'市','')}"/>${fn:replace(tmpTown,'区','')} --%></span></td>
	    <%-- <td align="right" class="tabd font32 font-jc"  ><div style="width:42mm;word-wrap:break-word;word-break:break-all;text-align:right;line-height:30pt; "> ${printerModel.toDistCode} </div></td> --%>
	  </tr>
	</table>
    </td>
  </tr>
  <tr>
    <td class="tabd" align="center" valign="middle" style="height:18mm;"><!-- <img src="img/ydh.jpg" width="179" height="55" /> --></td>
  </tr>
  <tr>
    <td  class="tabd" align="left" valign="middle" style="height:7mm;"> 
    <p class="font11 font-jc" id="waybillNo"></p>
    </td>
  </tr>
  <tr>
    <td  class="tabd" valign="middle" style="height:12mm;">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
	     <td align="left" valign="middle"  style="width: 55mm" ><span class="font7" >收件人/代签人: </span></td>
	    <td  align="left" valign="middle" > <span class="font7" >签收日期:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日 </span></td>
	   
	  </tr>
	</table>
   
    </td>
  </tr>
  <tr>
    <td align="left" valign="middle" style="height:51mm;"><div id="bs">
   <p class="font10" style="display:block; height:50mm;"> 服务描述:只有工作日派送<br />
订单号:${printerModel.ordeno}<br />
保险金额:<!-- 壹仟元 --><br />
保险费:<!-- 5元 --><br />
寄付金额:<!-- 30 --></p>

 <div class="font14 font-jc yys" >已验视</div></div>
    </td>
  </tr>
  <tr>
    <td class="tabd" valign="middle" style="height:11mm;"><sapn class="font10 font-jc" style="display:block;float:left; height:11mm; line-height:11mm; vertical-align: middle; padding-left:5px; ">${printerModel.expressNo}</sapn><!-- <img src="img/ydh.jpg"  style="float:left;height:10mm;" /> --></td>
  </tr>
  <tr>
    <td valign="middle" style="height:33mm;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top" class="tabrd" style="width:60mm;height:30mm;">
          <p class="font9">
寄件人:${printerModel.fromName}<br />
寄件人电话:${printerModel.fromPhone ? printerModel.fromPhone : printerModel.fromMobile}<br />
寄件公司:${printerModel.fromCompany}<br/>
寄件人地址:${printerModel.fromAddress}</p>
          </p>
          <p class="font9" style="margin-top:3px;">收件人:${printerModel.toName}<br />
           收件人电话:${printerModel.toPhone ? printerModel.toPhone : printerModel.toMobile}<br />
           收件公司:${printerModel.toCompany}<br/>       
           收件人地址:${printerModel.toAddress}
          </p>
        </td>
        <td valign="top" class="tabd">
        <p class="font8" > 服务描述:只有工作日派送<br />
         订单号:${printerModel.ordeno}<br />
         保险金额:<br />
         保险费:<br />
         寄付金额:
        </p>
        </td>
      </tr>
    </table></td>
  </tr>
   <tr>
    <td class="font7" align="left" valign="middle" style="font-family:SimSun;">  官方网站:http://www.yundaex.com &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;客服热线:400-821-3789&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;收货人联</td>
  </tr> 
</table>

</body>
</html>
